package com.powernode.spring6.bean;

public class User {
    private String name;

    public void setName(String name) {
        System.out.println("第二步：给对象的属性赋值。");
        this.name = name;
    }

    public User() {
        System.out.println("第一步：无参数构造方法执行。");
    }

    public void initBean(){
        System.out.println("第三步：初始化Bean");
    }

    public void destroyBean(){
        System.out.println("第五步：销毁Bean");
    }
}
